package com.cat.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.cat.dto.EmployeeInfoDTO;
import com.cat.dto.PageDTO;
import com.cat.entity.Employee;
import com.cat.entity.LoginInfo;
import com.cat.query.DepartmentQuery;
import com.cat.vo.EmployeeVO;

public interface EmployeeService extends IService<Employee> {
    Employee login(LoginInfo loginInfo);

    /**
     * 根据部门id查询员工
     *
     * @param departmentQuery
     * @return
     */
    PageDTO<EmployeeVO> getByDepartmentId(DepartmentQuery departmentQuery);

    /**
     * 新增员工
     * @param employee
     */
    void add(EmployeeInfoDTO employee);
}
